--- title: "L1-010 比较大小" created: 2025-11-28 tags: - 算法 --- # L1-010 比较大小 ## 题目 [L1-010 比较大小](https://pintia.cn/problem-sets/994805046380707840/exam/problems/type/7?problemSetProblemId=994805132040978432&page=0) ![[image-7b45a214.png]] ## 思路分析 ## 代码实现 ```cpp #include using namespace std; #define endl '\n' int main(){ ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); vector num; int n=3; while(n--){ int temp;cin>>temp; num.push_back(temp); } sort(num.begin(),num.end()); for(int i=0; i"; } return 0; } ``` ## 同类题型 ## 视频讲解 --- ⬅️ [[L1-009 N个数求和|L1-009 N个数求和]] 🏠 [[00-天梯赛]] ➡️ [[L1-011 A-B|L1-011 A-B]]